<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8">
	<link rel="stylesheet" href='../Public/css/all.css' />
	<link rel="stylesheet" href='../Public/css/agency.css' />
		<style type="text/css">
			body{
				margin:0;
			}
			table{
				border-collapse:collapse;
				margin:2px auto 3px auto;
			}
			td{
				border: 1px solid #ffd99c;
				height: 25px;
				font: 14px;
				padding:0 10px;
			}
			.td1{
				width: 150px;
				text-align:center;
			}
			.td2{
				width: 500px;
			}
			#title{
				line-height:30px;
				font-size:20px;
				text-indent:10px;
				height:30px;
				border-bottom:1px solid #FFD99C;
				background-color: #FFF6C7;
			}
			#Aword{
				width: 100%;
			}
			#Apic{
				width: 680px;
				height: 400px;
				padding: 20px 10px;
				border-bottom: 1px solid #ffd99c;
			}
		</style>
	</head>
	<body onload="setheight()">
			<!--图片区-->
			<div id='Apic'>
				<div id='AbigPic'>
					<notempty name="list.savepath">
					<img src="__APP__/{$list.savepath}">
					<else />
					暂无图片
					</notempty>
				</div>
			</div>
			<!--文字区-->
			<div id='Aword'>
				<div id="title">货物代理的简介</div>
				<div>
					<table>
						<tr>
							<td class='td1'>货代名称</td>
							<td class='td2'>{$list.agentname}</td>
						<tr>
						<tr>
							<td class='td1'>货代类型</td>
							<td class='td2'>{$list.cargotype}</td>
						<tr>
						<tr>
							<td class='td1'>详细描述</td>
							<td class='td2'>{$list.description}</td>
						<tr>
						<tr>
							<td class='td1'>货运量排名</td>
							<td class='td2'>{$list.rank}</td>
						<tr>
						<tr>
							<td class='td1'>服务质量</td>
							<td class='td2'>{$list.quality}</td>
						<tr>
						<tr>
							<td class='td1'>联系方式</td>
							<td class='td2'>{$list.communicate}</td>
						<tr>
						<tr>
							<td class='td1'>公司连接</td>
							<td class='td2'>{$list.link}</td>
						<tr>
					</table>
				</div>
			</div>
	<script>
	function setheight(){
		var newHeight = document.body.scrollHeight;
		window.parent.document.getElementById("description").style.height = newHeight;
		//以上firefox通过，但是ie6必须加上下面这句，不然iframe高度是改了，但是可见区域没有改
		window.parent.document.getElementById("description").style.height = newHeight;
	}
	</script>
	</body>
</html>
